package com.itHsuSE.demo2;

public class Work9 {
}

class Music{
    String name;
    int times;
    public Music(String name,int times){
        this.name=name;
        this.times=times;
    }
    public void play(){
        System.out.println("play()方法");
    }
    public String getInfo(){
        return "name:"+this.name+" times:"+this.times;
    }
}